home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_313 / uucp / uucp1.lzh / src / lib / validuser.c < prev   
C/C++ Source or Header  |  1990-01-10  |  338b  |  25 lines

  1.  
  2. /*
  3.  *  VALIDUSER.C
  4.  *
  5.  *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  6.  */
  7.  
  8. ValidUser(str)
  9. char *str;
  10. {
  11.     if (*str == '|' || *str == '@')
  12.     return(0);
  13.     while (*str) {
  14.     if (*str < 32 || *str > 126)
  15.         return(0);
  16.     if (*str == ':')
  17.         return(0);
  18.     if (*str == '/')
  19.         return(0);
  20.     ++str;
  21.     }
  22.     return(1);
  23. }
  24.  
  25.